package com.cloud2eye.auth.service;

import com.cloud2eye.auth.jwt.JwtUser;
import org.springframework.security.core.userdetails.UserDetailsService;

public interface UserService extends UserDetailsService{
//    void addAuthority(Authority authority) throws Exception;
//    void addUser(APIUser APIUser) throws Exception;
    JwtUser create(String username);

    void updateToken(String username, String token);

    boolean isSameToken(String username, String token);

    boolean isEnable(String username);
}
